package com.admin.education.dataTransferObject.role.mapper;

import com.admin.education.dataTransferObject.role.RoleTransfer;
import com.admin.education.models.Role;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public abstract class RoleMapper {
    @Mappings({})
    public abstract RoleTransfer mapFrom(Role role);

    @Mappings({})
    public abstract List<RoleTransfer> mapFrom(List<Role> roles);
}
